package com.young.common.constants;

import java.text.SimpleDateFormat;

/**
 * 定义一些key等一些常量
 */
public class Constants {

    public static final char[] HEX_DIGITS = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'};

    public static SimpleDateFormat createFormat(String pattern) {
        pattern = null == pattern ? "yyyy-MM-dd HH:mm:ss" : pattern;
        synchronized (Constants.class) {
            return new SimpleDateFormat(pattern);
        }
    }

    public static final String SERVER_ADDRESS = "https://youthrunner.top";

}
